﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BorisTheBlade
{
    public partial class AlarmForm : Form
    {
       private static AlarmForm instance;

       private AlarmForm() { }

       public static AlarmForm Instance
       {
          get 
          {
             if (instance == null)
             {
                 instance = new AlarmForm();
             }
             return instance;
          }
       }

        public static void ShowAlarm(string msg)
        {
            if (!Instance.Visible)
            {
                Instance.Visible = true;
            }
            Instance.msgRichTextBox.Text = msg;
        }
    }
}
